home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group98b.txt / 000110_icon-group-sender _Mon Jun 29 08:42:08 1998.msg < prev    next >
Internet Message Format  |  2000-09-20  |  2KB

  1. Return-Path: <icon-group-sender>
  2. Received: from kingfisher.CS.Arizona.EDU (kingfisher.CS.Arizona.EDU [192.12.69.239])
  3.     by baskerville.CS.Arizona.EDU (8.8.8/8.8.7) with SMTP id IAA06781
  4.     for <icon-group-addresses@baskerville.CS.Arizona.EDU>; Mon, 29 Jun 1998 08:42:06 -0700 (MST)
  5. Received: by kingfisher.CS.Arizona.EDU (5.65v4.0/1.1.8.2/08Nov94-0446PM)
  6.     id AA30182; Mon, 29 Jun 1998 08:41:55 -0700
  7. Message-Id: <199806291302.PAA27566@capway.com>
  8. From: "Vladimir Grodzenski" <grodzens@capway.com>
  9. To: icon-group@optima.CS.Arizona.EDU
  10. Date: Mon, 29 Jun 1998 15:02:12 +0000
  11. Mime-Version: 1.0
  12. Content-Type: text/plain; charset=US-ASCII
  13. Content-Transfer-Encoding: 7BIT
  14. Subject: Bug in FillRectangle function ?
  15. Reply-To: <vladimir.grodzenski@capway.com>
  16. Cc: jeffery@cs.utsa.edu
  17. Priority: urgent
  18. Errors-To: icon-group-errors@optima.CS.Arizona.EDU
  19. Status: RO
  20. Content-Length: 1282
  21.  
  22. (I am using the last Windows Icon downloaded from -UTSA- FTP site)
  23.  
  24. Here is just a very quick note on one example from Graphics 
  25. book which uses "drawop=reverse" attribute (i.e. drawing the same 
  26. figure twice in "reverse" mode must erase the figure).
  27.  
  28. Page 88.  (or on the CD, Examples Chapter 4, glide.icn), the 
  29. following example does not work:
  30.  
  31. WAttrib("drawop=reverse")
  32. every x := 1 to 100 do {
  33.    FillRectangle(x, 100, 10, 20)
  34.    WDelay(1)
  35.    FillRectangle(x, 100, 10, 20)
  36.    }
  37.  
  38. Here the rectangle is simply not filled!
  39.  
  40. The effect may be obtained with the different code:
  41.  
  42. every x := 1 to 100 do {
  43.    WAttrib("drawop=copy")
  44.    FillRectangle(x, 100, 10, 20)
  45.    WDelay(1)
  46.    WAttrib("drawop=reverse")
  47.    FillRectangle(x, 100, 10, 20)
  48.    }
  49.  
  50. I also tried the DrawCircle(), DrawRectangle() and even 
  51. FillCircle() instead of FillRectangle(). All of these functions 
  52. worked fine in the way described in the Graphics book.
  53.  
  54. Well, assuming that FillRectangle is just buggy and all Draw***() 
  55. functions work with "drawop=reverse" attribute, I am surprised that 
  56. DrawString() does not. Why doesn't it?
  57.  
  58.  
  59. Vladimir Grodzenski
  60. =================================================
  61. E-mail: vladimir.grodzenski@capway.com
  62. CompuServe: 100700,526
  63. =================================================
  64.